package com.xybbs.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.xybbs.entity.Replies;
import com.xybbs.mapper.RepliesMapper;
import com.xybbs.service.RepliesService;

@Service
@Transactional
public class RepliesServiceImpl implements RepliesService {
	@Autowired
	RepliesMapper repliesMapper;
	public void add(Replies reply) {
		// TODO Auto-generated method stub
		repliesMapper.insert(reply);
	}
	public List<Replies> checkAllByTipIdWithUser(String tipId) {
		// TODO Auto-generated method stub
		return repliesMapper.selectAllByTipIdWithUser(tipId);
	}
	public void removeReplyById(String replyId) {
		// TODO Auto-generated method stub
		repliesMapper.delReplyById(replyId);
	}

}
